import React, { Component } from 'react'

export default class Test extends Component {
  state = {
    count: 0,
  }
  static getDerivedStateFromProps(props, state) {
    // console.log(props, state)
    return {
      count: props.c,
    }
  }
  render() {
    return (
      <div>
        Test,
        {this.state.count}
      </div>
    )
  }
}
